package com.petadoption.serverclient.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.petadoption.serverclient.entity.Deliver;
import org.apache.ibatis.annotations.SelectKey;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 汪仕杰
 * @since 2023-08-28
 */
public interface IDeliverService extends IService<Deliver> {

    Deliver findDeliverByPetId(Integer petId);

    @SelectKey(statement = "select LAST_INSERT_ID()", keyProperty = "pet_id", before = false, resultType = Long.class)
    int addDeliver(Deliver deliver);

}
